package io.geekidea.springbootplus.system.service;


import com.google.common.eventbus.Subscribe;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;
import io.geekidea.springbootplus.system.entity.SysSubscribe;
import io.geekidea.springbootplus.system.param.SysSubscribePageParam;
import io.geekidea.springbootplus.system.vo.SysSubscribeQueryVo;
import io.geekidea.springbootplus.system.vo.SysUserQueryVo;

import java.io.Serializable;
import java.util.List;

public interface SysSubscribeService extends BaseService<SysSubscribe> {
    //将商品加入预约表中
    boolean addToSubscribe(SysSubscribe sysSubscribe) throws Exception;

    //从预约表中将商品单个删除
    boolean deleteFromSubscribe(int id) throws Exception;

    //从预约表中将商品批量删除
    boolean deleteAllFromSubscribe(List<Integer> ids) throws Exception;

    //根据商品编号改变预约表中单个商品
    boolean updateSubscribeById(SysSubscribe sysSubscribe) throws Exception;

    //根据手机号获取所有商品数据
    Paging<SysSubscribeQueryVo> findSysSubscribeByPhone(SysSubscribePageParam subscribe) throws Exception;

    //根据id获取预约表详细信息
    SysSubscribeQueryVo getSubscribe(Serializable id) throws Exception;
}
